import {CHECKWORKDATA} from './actionType'
import { get } from '@u/http'

const loadDataSync =list=>{
    return{
        type:CHECKWORKDATA,
        list
    }
}

const loadDataAsync = ()=>{
    return async dispatch =>{
        let result = await get({
            url:'api/zuoye/list?uId=1'
        })
        dispatch(loadDataSync(result.data.zuoYes) )
    }
}


const loadDataSaga =()=>{
    return{
        type: "loadDataSaga"
    }
}

export {
    loadDataSync,
    loadDataAsync,
    loadDataSaga
}